package errorLayer;

import javax.swing.JOptionPane;

public class ExistingTeachingBlockError extends JOptionPane {
	
	public ExistingTeachingBlockError () {
		
		displayMessage();
		
	}

	private void displayMessage() {
		this.showMessageDialog(getParent(), "That specific teachingblock has already been added to the database.\nThat block will now be selected.", "ERROR: 102", JOptionPane.OK_OPTION);
	}

}
